Skip to content

Add a new fingerprinting method for XNNPack weight cache.#77

Closed
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_809079455
Closed

Add a new fingerprinting method for XNNPack weight cache.#77
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_809079455

Conversation

@copybara-service
Copy link
Copy Markdown

Add a new fingerprinting method for XNNPack weight cache.

Warning: this new fingerprinting method is currently experimental.

Every operation in XNNPack that uses the weight cache should implement a
corresponding fingerprinting function. The goal of that fingerprint is to check
whether the pre-computation (packing) that takes place for this op has changed
and if a previous weight cache can be reused directly or not.

The expected way for this to work is that a fingerprint function would assume a
predetermined set of constant inputs passed to the create function and would
then hash the resulting cache buffer.

The xnn_weights_cache_look_up_key has a new field that holds the fingerprint
identifier. It is set by kernel setup functions when they try to do cache
look-ups.

Warning: this new fingerprinting method is currently experimental.

Every operation in XNNPack that uses the weight cache should implement a
corresponding fingerprinting function. The goal of that fingerprint is to check
whether the pre-computation (packing) that takes place for this op has changed
and if a previous weight cache can be reused directly or not.

The expected way for this to work is that a fingerprint function would assume a
predetermined set of constant inputs passed to the create function and would
then hash the resulting cache buffer.

The `xnn_weights_cache_look_up_key` has a new field that holds the fingerprint
identifier. It is set by kernel setup functions when they try to do cache
look-ups.

PiperOrigin-RevId: 809079455
@copybara-service copybara-service Bot closed this Dec 9, 2025
@copybara-service copybara-service Bot deleted the test_809079455 branch December 9, 2025 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant